<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.div1 {
				background-color: aquamarine;
				text-align: center;
			}
			
			.div1>p {
				display: inline;
				background-color: beige;
			}
		</style>
	</head>
	<body>
		<div class="div1">
			<p>我是p标签</p>
		</div>
	</body>
</html>